package com.otod.sys.org.mapper;

import java.util.List;
import java.util.Map;

import com.otod.base.mapper.BaseMapper;
import com.otod.base.support.spring.mybatis.annotation.MyBatisRepository;
import com.otod.sys.org.bo.OrgTreeBO;
import com.otod.sys.vo.AuapTOrgVo;

@MyBatisRepository
public interface OrgMapper extends BaseMapper<AuapTOrgVo>{
	public List<OrgTreeBO> findAllTree();
	public List<OrgTreeBO> findAsyncTree(Map map);
	public List<OrgTreeBO> findOrgByMatchInfo(String matchInfo);
	
	/**
	 * 检查组织编号是否重复
	 * @param empNo
	 * @return
	 */
	public Long isRepeatOrgNo(String orgNo);
	
	/**
	 * 检查组织编号是否重复
	 * @param empNo
	 * @return
	 */
	public Long isRepeatOrgNoOrgId(Map map);
	
	public Integer getOrgChildrenCount(String orgId);
	
}
